package com.sfh.cp.mass.pst;

import com.sfh.cp.mass.pst.impl.PstNote;
import com.sfh.cp.mass.req.ReqPageNote;
import com.sfh.lib.mvp.IPresenter;
import com.sfh.lib.mvp.IView;
import com.sfh.lib.mvp.annotation.Service;

import crm.sfh.server.entity.EContent;
import crm.sfh.server.entity.ENote;
import crm.sfh.server.entity.rsp.TPage;

/**
 * 功能描述:帖子-分页
 *
 * @date 2018/5/4
 */
@Service(achieve = PstNote.class)
public interface IPstNote extends IPresenter<IPstNote.IVNote>{
    interface IVNote extends IView {
        void onSuccess(TPage<EContent> page);
        void onError(String error);
    }

    /***
     * 分页
     */
    void listPage (ReqPageNote req);

    /***
     * 点赞
     * @param req
     */
    void updateFabulous(ENote  req);
}
